package com.fa.ojcodesandbox.unsafe;

import java.nio.file.Files;
import java.nio.file.Paths;

/**
 * ClassName: ReadFileError
 * Package: com.fa.ojcodesandbox.unsafe
 * Description:读取服务器文件（文件信息泄露）
 *
 * @Author:
 * @Create: 2024/4/27 - 20:07
 * @Version: v1.0
 */
public class ReadFileError {

    public static void main(String[] args) throws Exception {
        System.getProperty("user.dir");
        String filePath = "C:\\Users\\Administrator\\Desktop\\test.txt";
        String content = String.valueOf(Files.readAllLines(Paths.get(filePath)));
        System.out.println(content);
    }
}
